package com.googlecode.cswish.model;

/**
 * @author Jerry.Feng 2008-11-26
 */
public enum TagScope {
	OPEN('+'),
	CLOSE('-'),
	INNER(' '),
	ALL('.');
	
	private char c;
	
	private TagScope(char c) {
		this.c = c;
	}
	
	public static TagScope valueOf(char c) {
		switch (c) {
		case '+':
			return OPEN;
		case '-':
			return CLOSE;
		case '.':
			return ALL;
		default:
			return INNER;
		}
	}
}